package com.mby.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.data.mongodb.core.aggregation.ArrayOperators;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by noah on 2018/4/15.
 */
@Document(collection = "users")
@JsonInclude(value = JsonInclude.Include.NON_DEFAULT)
public class User extends BaseModel{

    @Indexed
    private String loginName;
    private String userName;
    private String phone;
    @Indexed
    private String tokenM;
    private String tokenP;
    @Indexed
    private String dealerId;
    private String dealerName;
    private String roleIdsOrg;
    private String roleIds;
    private Integer avatarVer;
    private String rongCloudToken;
    private String roleName;
    private String roleNameOrg;
    private Boolean quited;
    private Integer status;
    private Integer brandId;
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getRoleIdsOrg() {
        return roleIdsOrg;
    }

    public void setRoleIdsOrg(String roleIdsOrg) {
        this.roleIdsOrg = roleIdsOrg;
    }

    public String getRoleNameOrg() {
        return roleNameOrg;
    }

    public void setRoleNameOrg(String roleNameOrg) {
        this.roleNameOrg = roleNameOrg;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getQuited() {
        return quited;
    }

    public void setQuited(Boolean quited) {
        this.quited = quited;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRongCloudToken() {
        return rongCloudToken;
    }

    public void setRongCloudToken(String rongCloudToken) {
        this.rongCloudToken = rongCloudToken;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public String getTokenM() {
        return tokenM;
    }

    public void setTokenM(String tokenM) {
        this.tokenM = tokenM;
    }

    public String getTokenP() {
        return tokenP;
    }

    public void setTokenP(String tokenP) {
        this.tokenP = tokenP;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDealerId() {
        return dealerId;
    }

    public void setDealerId(String dealerId) {
        this.dealerId = dealerId;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public Integer getAvatarVer() {
        return avatarVer;
    }

    public void setAvatarVer(Integer avatarVer) {
        this.avatarVer = avatarVer;
    }
}
